import request from '@common/utils/request';

export function getList(params) {
  return request({
    url: '/staff/list',
    method: 'post',
    data: params,
  });
}
export function updateStaff(data) {
  return request({
    url: '/staff/update',
    method: 'post',
    data,
  });
}
export function verifyStaff(data) {
  return request({
    url: '/staff/verify',
    method: 'post',
    data,
  });
}
export function getExternalLink(params) {
  return request({
    url: '/external/detail',
    method: 'post',
    data: params,
  });
}

export function createUser(params) {
  return request({
    url: '/user/create',
    method: 'post',
    data: params,
  });
}

export function removeStaff(data) {
  return request({
    url: '/staff/remove',
    method: 'post',
    data,
  });
}

export function staffSync(data) {
  return request({
    url: '/staff/sync',
    method: 'post',
    data,
  });
}

export function userSync(data) {
  return request({
    url: '/user/sync',
    method: 'get',
    data,
  });
}
